package com.example.demo.mapper;

import com.example.demo.bean.SDept;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface SDeptMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SDept record);

    SDept selectByPrimaryKey(Integer id);
    
    List<SDept> selectByRegionId(Integer id);

    List<SDept> selectAll();

    int updateByPrimaryKey(SDept record);
    
    List<SDept> selectByCondition(
    		@Param("name")String name,
    		@Param("regionid")Integer regionid);
    int batchDelete(@Param("id")int[] id);
}